package com.niguang.labour.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
@TableName("work_user_bank")
public class WorkUserBank extends Model<WorkUserBank> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 卡号
     */
	@TableField("bank_card")
	private String bankCard;
    /**
     * 开户银行
     */
	@TableField("bank_name")
	private String bankName;
	@TableField("sub_branch_id")
	private String subBranchId;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 持卡人姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * now()
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 是否删除 0-未删除 1-已删除
     */
	@TableField("del_flag")
	private Integer delFlag;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBankCard() {
		return bankCard;
	}

	public void setBankCard(String bankCard) {
		this.bankCard = bankCard;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getSubBranchId() {
		return subBranchId;
	}

	public void setSubBranchId(String subBranchId) {
		this.subBranchId = subBranchId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public static final String ID = "id";

	public static final String BANK_CARD = "bank_card";

	public static final String BANK_NAME = "bank_name";

	public static final String SUB_BRANCH_ID = "sub_branch_id";

	public static final String USER_ID = "user_id";

	public static final String USER_NAME = "user_name";

	public static final String CREATE_TIME = "create_time";

	public static final String DEL_FLAG = "del_flag";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkUserBank{" +
			"id=" + id +
			", bankCard=" + bankCard +
			", bankName=" + bankName +
			", subBranchId=" + subBranchId +
			", userId=" + userId +
			", userName=" + userName +
			", createTime=" + createTime +
			", delFlag=" + delFlag +
			"}";
	}
}
